﻿using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using StartsEAS_API.BLL.Interfaces.IAlterClassB;
using StartsEAS_API.Model;

namespace StartsEAS_API.Controllers.AlterClassContor
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    [EnableCors("any")]
    public class AlterClassController : ControllerBase
    {
        private readonly IAlterClassBLL _alterClassBll;
        public AlterClassController(IAlterClassBLL alterClassBll) { 
            _alterClassBll = alterClassBll;
        }
        /// <summary>
        /// 查询所有调课申请表
        /// </summary>
        /// <returns></returns>
        [HttpGet]
        public ResultUtils GetAllAlterClass() {
            System.Console.WriteLine("访问接口：GetAllAlterClass");
            return _alterClassBll.GetAllAlterClass();
        }
    }
}
